import request from '@/utils/request'

// 添加一个工作组
export function Add(data) {
  return request({
    url: '/api/workgroup/add',
    method: 'post',
    data: data,
  })
}
// 修改一个工作组
export function Update(parameter, data) {
  return request({
    url: '/api/workgroup/update',
    method: 'post',
    params: parameter,
    data: data,
    needToken: true,
  })
}

// 删除一个工作组
export function Delete(parameter) {
  return request({
    url: '/api/flow/delete',
    method: 'delete',
    params: parameter,
    needToken: true,
  })
}
